﻿@using Cofoundry.Web.Identity;
@model CompletePasswordResetViewModel

<h1 class="mt-3">Reset Password</h1>

<div class="row mt-4 mb-5">
    <form method="post" class="col col-4">

        <div asp-validation-summary="ModelOnly" class="text-danger"></div>

        <input name="Token" type="hidden" value="@Model.Token" />
        <input name="UserPasswordResetRequestId" type="hidden" value="@Model.UserPasswordResetRequestId" />

        <div class="form-group">
            <label asp-for="NewPassword"></label>
            <input asp-for="NewPassword" type="password" placeholder="New password" class="form-control" maxlength="300">
            <span asp-validation-for="NewPassword" class="text-danger"></span>
        </div>
        <div class="form-group">
            <label asp-for="ConfirmNewPassword"></label>
            <input asp-for="ConfirmNewPassword" class="form-control" placeholder="Confirm password" maxlength="300">
            <span asp-validation-for="ConfirmNewPassword" class="text-danger"></span>
        </div>

        <button type="submit" class="btn btn-primary">Change password</button>
    </form>
</div>